fat: replace LINEAR_PREFETCH_SIZE with PREFETCH_BLOCKS
authorSergei Shtylyov <[email protected]>
Fri, 19 Aug 2011 09:37:46 +0000 (09:37 +0000)
committerWolfgang Denk <[email protected]>
Sat, 1 Oct 2011 19:52:19 +0000 (21:52 +0200)
commit025421eab453fd41a3cc14a0fc48115b0dc4c287
treeedea3f18319116fc6320b90617844a40f35ce842
parent40e219165bcdf450cc69976fa129f2ef9889973a
fat: replace LINEAR_PREFETCH_SIZE with PREFETCH_BLOCKS

Currently in do_fat_read() when reading FAT sectors, we have to divide down
LINEAR_PREFETCH_SIZE by the sector size, whereas it's defined as 2 sectors
worth of bytes. In order to avoid redundant multiplication/division, introduce
#define PREFETCH_BLOCKS instead of #define LINEAR_PREFETCH_SIZE.

Signed-off-by: Sergei Shtylyov <[email protected]>
fs/fat/fat.c
include/fat.h